/*
 * @Author: 华芊芊 huaqianqian@yeah.net
 * @Date: 2023-09-22 10:08:44
 * @LastEditors: 华芊芊 huaqianqian@yeah.net
 * @LastEditTime: 2023-11-09 11:01:36
 * @FilePath: \zmglpt-ui-screen\src\api\market.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from '@/utils/request'
let paramsTemp = {
  // ...JSON.parse(localStorage.getItem('PICKTIME')),
  columnName: "prov_org_uuid",
  orgUuid: "00000000000000000000000011340001",
}
// 内部监管
export const getFlowRank = (params = {}) =>
  request({
    url: '/abnormal_flow_ranking/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })


// 真烟流出品规排名
export const getOutflowGoodsNameRanking = (params = {}) =>
  request({
    url: '/outflow_goods_name_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 真烟流出地区排名
export const getOutflowCityRanking = (params = {}) =>
  request({
    url: '/outflow_city_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// (省内流出)真烟流销比地区排数据
export const getOutflowSaleRadioRanking = (params = {}) =>
  request({
    url: '/outflow_sale_radio_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// (省内流出)真烟外流总量趋势数据
export const getOutflowTotalNumTrend = (params = {}) =>
  request({
    url: '/outflow_total_num_trend_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// (省内流出)真烟外流流销比趋势分析数据
export const getOutflowSaleRadioTrend = (params = {}) =>
  request({
    url: '/outflow_sale_radio_trend_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

// 查获数量地区排名
export const getInFlowCityRanking = (params = {}) =>
  request({
    url: '/inflow_city_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//查获品规数量排名
export const getInflowGoodsNameRanking = (params = {}) =>
  request({
    url: '/inflow_goods_name_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//（省内查获）真烟查获趋势数据
export const getInflowTrendAnalysis = (params = {}) =>
  request({
    url: '/inflow_trend_analysis_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//3【真烟查处比趋势】
export const getInflowOutflowRadioTrend = (params = {}) =>
  request({
    url: '/inflow_outflow_radio_trend_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//3【真烟查处比趋势】
export const getInflowOutflowRadioCityRanking = (params = {}) =>
  request({
    url: '/inflow_outflow_radio_city_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//真烟查获总量（万支）及同比
export const getInflowTotalNumYearonyear = (params = {}) =>
  request({
    url: '/inflow_total_num_yearonyear_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//真烟流出总量（万支）及同比
export const getOutflowTotalNumYearonyear = (params = {}) =>
  request({
    url: '/outflow_total_num_yearonyear_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

  //省内流出-流出省份Top5
export const getOutflowOutProRank = (params = {}) =>
request({
  url: '/outflow_outpro_rank_ah_v1/',
  method: 'get',
  params: { ...paramsTemp, ...params },
  custom: { catch: true },
})

//省内查获-查获省份Top5
export const getInflowOutProRank = (params = {}) =>
request({
  url: '/inflow_getpro_rank_ah_v1/',
  method: 'get',
  params: { ...paramsTemp, ...params },
  custom: { catch: true },
})